package cn.wolfcode.crm.service.impl;

import cn.wolfcode.crm.mapper.ChartMapper;
import cn.wolfcode.crm.query.QueryObject;
import cn.wolfcode.crm.query.impl.ClaimChartQueryObject;
import cn.wolfcode.crm.query.impl.SaleChartQueryObject;
import cn.wolfcode.crm.service.IChartService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
@Service
public class ChartServiceImpl implements IChartService {
    @Autowired
    private ChartMapper chartMapper ;
    @Override
    public List<Map<String, Object>> queryClaimChart(QueryObject qo) {
        List<Map<String, Object>> claimChartMap = chartMapper.selectClaimChart(qo);
        return claimChartMap;
    }
    @Override
    public List<Map<String, Object>> querySaleChart(QueryObject qo) {
        List<Map<String, Object>> saleChartMap = chartMapper.selectSaleChart(qo);
        return saleChartMap;
    }
}
